﻿<src:WpfConfiguration x:Class="SerialModules.Wpf.SerialWriteConfig"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:src="clr-namespace:MayhemWpf.UserControls;assembly=MayhemWpf"
			 xmlns:controls="clr-namespace:SerialModules.Wpf"
			 Width="400">
	<Grid>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="100" />
			<ColumnDefinition Width="300" />
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition />
			<RowDefinition />
			<RowDefinition />
		</Grid.RowDefinitions>

		<controls:PortSelector x:Name="Selector" Grid.ColumnSpan="2"  Grid.Column="0" Grid.Row="0" Margin="0,0,0,20" />

		<TextBlock Style="{StaticResource ConfigLabel}" Grid.Column="0" Grid.Row="1">Phrase to Write:</TextBlock>
		<TextBox Name="PhraseBox" Grid.Column="1" Grid.Row="1" TextChanged="PhraseBox_TextChanged" />
		
		<TextBlock HorizontalAlignment="Center" Margin="0,20,0,0" Style="{StaticResource ConfigErrorMessage}" Name="invalidPhrase" Grid.Column="1" Grid.Row="2" Visibility="Collapsed">You must provide a phrase to listen for.</TextBlock>
	</Grid>
</src:WpfConfiguration>
